(handle_stop): Move some code out of loop.
authorRichard M. Stallman <rms@gnu.org>
Sat, 3 Nov 2007 01:50:16 +0000 (01:50 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sat, 3 Nov 2007 01:50:16 +0000 (01:50 +0000)
src/xdisp.c

index 9e3a3bade1f55a2b906845a49b2f5c594094d1b8..ef8c6c836aa83a2db4f57cc64f1e9d7f0001f969 100644 (file)
@@ -3073,16 +3073,18 @@ handle_stop (it)
          if (it->method == GET_FROM_DISPLAY_VECTOR)
            handle_overlay_change_p = 0;
 
-         /* Handle overlay changes.  */
+         /* Handle overlay changes.
+            This sets HANDLED to HANDLED_RECOMPUTE_PROPS
+            if it finds overlays.  */
          if (handle_overlay_change_p)
            handled = handle_overlay_change (it);
-
-         /* Determine where to stop next.  */
-         if (handled == HANDLED_NORMALLY)
-           compute_stop_pos (it);
        }
     }
   while (handled == HANDLED_RECOMPUTE_PROPS);
+
+  /* Determine where to stop next.  */
+  if (handled == HANDLED_NORMALLY)
+    compute_stop_pos (it);
 }